<?php
require 'exce1.php';
require 'exceDemo1.php';
try{
    reg(['email' => '1312797840@qq.com','pwd' => 123456,'repwd' => 1234567]);
}catch(emailException $ee){
    echo $ee->getMessage();
} catch(pwdException $ep){
    echo $ep;
    echo PHP_EOL , '特殊处理';
}catch(Exception $e){
    echo $e->getTraceAsString();
    echo PHP_EOL,'其他情况,统一处理';
};